﻿define([ "dojo/_base/declare", "widgets/baseWidget/BaseWidget",
    "dojo/_base/lang", "dojo/on", "dojo/query","dojo/topic",
    "widgets/mapWidget/MapWidget","widgets/treeWidget/TreeWidget"
   ],
    function(declare,BaseWidget, lang, on, query, topic,MapWidget,TreeWidget) {
        return declare([ BaseWidget], {
        	//模板页面
            title:"MQ List",
            ismqlist: true,
            mqdata: [], //存储已经访问过的mq数据
            constructor : function() {
            	
            	this.inherited(arguments);

                var treeWidget = new TreeWidget();
                var url = "https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3";
                var url1 = "http://localhost:6080/arcgis/rest/services/JTworks/chinamapTest/MapServer";
                
               // treeWidget.initTree(url);
               // dijit.byId("tabCon").addTab(treeWidget,"tree",true,null);  // 添加控件

            },
            
            //组件初始化方法
            postCreate : function() {
            	this.inherited(arguments);
            	
            },

            startup:function(){
            	
            },
    
            destroy:function(){
            	this.inherited(arguments);
            }
        });
    });
